//*****************************************************************
//	CirclesPanel.java	Author: Jeana Davis
//
//	Represents the primary panel for Circles.java
//*****************************************************************

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;

import javax.swing.JPanel;

@SuppressWarnings("serial")
public class CirclesPanel extends JPanel
{
	private int diameter;
	
	public CirclesPanel (int radius) {
		//pozadina
		diameter = radius;
		setPreferredSize (new Dimension (diameter*2, diameter*2));
		setOpaque(false);
	}

	public void paintComponent(Graphics g) {
		Graphics2D g2 = (Graphics2D)g;
		g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
		super.paintComponent (g);
		g.setColor(Color.black);
		g.fillOval(0,0, diameter*2, diameter*2);
				
		
		
	}
}

